package day04_factory_method.product;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Koizumi Sinya
 * @date 2018/11/07. 20:35
 * @edithor
 * @date
 */
public class IDCardFactory extends Factory {
    private List idCards = new ArrayList();

    @Override
    protected Product createProduct(String name) {
        return new IDCard(name);
    }

    @Override
    protected void registerProduct(Product product) {
        idCards.add(product);
    }

    public List getIdCards() {
        return idCards;
    }
}
